home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Technology Seed / ADC Seed CD - July 1999.toast / USB / Mac OS USB DDK v1.2 / Examples / USBSampleStorageDriver / StorageClassUTDriver.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-04-15  |  1.8 KB  |  58 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        StorageClassUTDriver.h
  3.  
  4.     Contains:    This file contains all symbols that are exported to the system,
  5.                 and all Macros that are used throughout the driver.
  6.  
  7.     Version:    1.1
  8.  
  9.     Copyright:    © 1998-1999 by Apple Computer, Inc., all rights reserved.
  10.  
  11. */
  12.  
  13. #ifndef __STORAGECLASSUTDRIVER__
  14. #define __STORAGECLASSUTDRIVER__
  15.  
  16. #include <DriverServices.h>
  17.  
  18. //------------------------------------------------------------------------------
  19. //    Debugging Macros-
  20. //    This will turn DebugStr's on and off throughout the driver
  21. //----------------------------------------------------------------------------------
  22. #ifndef Include_Debugging
  23.     #define Include_Debugging 0            // Set to 1 to enable debugging
  24. #endif
  25.  
  26. #if Include_Debugging
  27.     #define IfDebugging(str)    SysDebugStr(str)
  28. #else
  29.     #define IfDebugging(str)
  30. #endif
  31.  
  32. //----------------------------------------------------------------------------------
  33. //    The Driver Description structure -
  34. //     This structure provides the Device Manager with information about our native driver
  35. //----------------------------------------------------------------------------------
  36.  
  37. extern DriverDescription TheDriverDescription;
  38.  
  39.  
  40. //----------------------------------------------------------------------------------
  41. //    The DoDriverIO Function -
  42. //     This function is the only entry to our driver from the Device Manager
  43. //----------------------------------------------------------------------------------
  44.  
  45. extern OSStatus DoDriverIO(    AddressSpaceID        addressSpaceID,
  46.                             IOCommandID            ioCommandID,
  47.                             IOCommandContents    ioCommandContents,
  48.                             IOCommandCode        ioCommandCode,
  49.                             IOCommandKind        ioCommandKind );
  50.  
  51.  
  52.  
  53. extern OSStatus FinishCommandProcessing(     IOCommandID ioCommandID,
  54.                                             IOCommandKind ioCommandKind,
  55.                                             OSStatus incomingStatus );
  56.  
  57. #endif /* __STORAGECLASSUTDRIVER__ */
  58.